package com.kfm.web.controller;

import com.kfm.product.service.ProductService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/product")
public class ProductController {

    @Resource
    private ProductService service;

    @GetMapping("/list")
    public String list() {
        return service.selectAll();
    }
}
